package com.service;

import com.mapper.TeacherMapper;
import com.pojo.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @CreateTime: 2022-12-19  20:36
 * @Description: TODO
 * @Version: 1.0.0
 */
@Service
public class TeacherServiceImpl implements TeacherService {

    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public Object insert(Teacher teacher) {
        return teacherMapper.insert(teacher);
    }

    @Override
    public Object delete(int id) {
        return teacherMapper.delete(id);
    }

    @Override
    public Object update(Teacher teacher) {
        return teacherMapper.update(teacher);
    }

    @Override
    public List pageList(int pageNum, int pageSize) {
        return teacherMapper.pageList(pageNum, pageSize);
    }

}
